﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using EuphoricNation.Util;

public partial class masters_Admin : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Authentication.UserLoggedIn || !Authentication.UserIsAdmin() || !Authentication.UserIsModerator())
            Authentication.RequestLogin(true);
    }

    protected void Page_PreRender(object sender, EventArgs e)
    {
        if (Page.Title != "INDEX")
            Page.Title = string.Format("EuphoricNation Administration: ", Page.Title);
        else
            Page.Title = "EuphoricNation Administration";
    }
}
